package com.chixing.controller;


import com.chixing.entity.Coupon;
import com.chixing.entity.DishType;
import com.chixing.service.ICouponService;
import com.chixing.service.IDishTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Yebken.
 * @since 2025-06-25
 */
@RestController
@RequestMapping("/coupon")
public class CouponController {
    @Autowired
    private ICouponService couponService;

    @GetMapping
    public List<Coupon> getAll(){
        return couponService.getAll();
    }
}
